package mysql

import "time"

type Imgs struct {
	Id          int64     `db:"id" json:"id"`
	Thumb       string    `db:"thumb" json:"thumb"`
	Url         string    `db:"url" json:"url"`
	Width       int       `db:"width" json:"width"`
	Height      int       `db:"height" json:"height"`
	CreatedTime time.Time `db:"created_time" json:"created_time"`
	UpdatedTime time.Time `db:"updated_time" json:"updated_time"`
	Category    int64     `db:"category" json:"category"`
	Original    string    `db:"original" json:"original"`
	Author      string    `db:"author" json:"author"`
	Description string    `db:"description" json:"description"`
	Color       string    `db:"color" json:"color"`
	AdminId     int64     `db:"admin_id"`
}

func (Imgs) TableName() string {
	return "imgs"
}
